import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/Home'
import Manage from '@/components/manage/manage'
import UserList from '@/components/userList/userList'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Manage',
      component: Manage,
      children: [
        {
          path: '',
          component: Home,
          meta: []
        },
        {
          path: '/UserList',
          component: UserList,
          meta: ['用户列表', '添加用户']
        }
      ]
    }
  ]
})
